/*
 * Copyright (C), 2014-2015, 杭州小卡科技有限公司
 * FileName: CicpServiceImpl.java
 * Author:   muxing
 * Date:    2015/10/21 10:54
 * Description:
 */
package com.xiaoka.ins.corp.api.cicp.service.impl;

import com.xiaoka.ins.corp.api.cicp.dto.RespEntity;
import com.xiaoka.ins.corp.api.cicp.proxy.CicpServiceUtils;
import com.xiaoka.ins.corp.api.cicp.service.CicpService;
import com.xiaoka.ins.corp.api.config.CicpConfig;
import com.xiaoka.ins.corp.common.dto.base.InsParameter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * CicpServiceImpl
 *
 * @author muxing
 * @date 2015/10/21
 */
@Service("cicpService")
public class CicpServiceImpl implements CicpService {

	private final static Logger log = LoggerFactory.getLogger(CicpServiceImpl.class);

	@Resource
	CicpConfig cicpConfig;

	@Override
	public RespEntity baseInfo(InsParameter insParameter) {
		return null;
	}

	@Override
	public RespEntity findVehicleModel(InsParameter insParameter) {

		CicpServiceUtils cicpServiceUtils = new CicpServiceUtils(cicpConfig);
		cicpServiceUtils.setVehicleInfo(insParameter);// 数据填充
		RespEntity respEntity = cicpServiceUtils.handle();
		return respEntity;
	}

	@Override
	public RespEntity insPremiumTrial(InsParameter insParameter) {
		return null;
	}

	@Override
	public RespEntity insInfoCheck(InsParameter insParameter) {
		return null;
	}

	@Override
	public RespEntity getInsInfoConfirm(InsParameter insParameter) {
		return null;
	}

	@Override
	public RespEntity confirmBuyIns(InsParameter insParameter) {
		return null;
	}

	@Override
	public RespEntity getPosPaymentNo(InsParameter insParameter) {
		return null;
	}

}
